<?php

namespace app\api\controller;

use app\common\controller\Frontend;

/**
 * 轮播图
 */
class Banner extends Frontend
{
    protected array $noNeedLogin = ['*'];

    public function lst(): void
    {
        $bannerModel = new \app\common\model\Banner();
        $res = $bannerModel->where("status", 1)
            ->order("weigh", "desc")->select();
        $this->success("轮播图", $res);
    }
}